package com.ldg.order.service;

import com.ld.pojo.PayVo;
import com.ld.pojo.TbPayLog;
import com.ldg.order.entity.Cart;
import com.ldg.order.entity.TbAddress;
import com.ldg.order.entity.TbOrder;

import java.util.List;

/**
 * @Author: Liudao
 * @Date: 2022-10-18-19:48
 * @Description:
 */
public interface OrderService {
    List<TbAddress> findAddrByUname(String name);

    List<Cart> findCartByUname(String name);

    void add(String name, TbOrder tbOrder);

    TbPayLog findPayLogByUname(String name);

    List<TbOrder> findOrdersByName(String name);

    PayVo findPayVoByname(String name);

    TbOrder findOrdersById(String id);

    void update(TbOrder order);
}
